projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6ed60f
)
(cd): Fix interactive spec to require match if there is no CDPATH.
author
Roland McGrath
<roland@gnu.org>
Sat, 30 Sep 1995 16:35:12 +0000
(16:35 +0000)
committer
Roland McGrath
<roland@gnu.org>
Sat, 30 Sep 1995 16:35:12 +0000
(16:35 +0000)
lisp/files.el
patch
|
blob
|
history
diff --git
a/lisp/files.el
b/lisp/files.el
index a2289337777bcc28def5e1f140e6943c10257886..529c3d7bd5b6048120d09bc764fa2ca54f02811e 100644
(file)
--- a/
lisp/files.el
+++ b/
lisp/files.el
@@
-300,7
+300,9
@@
If your environment includes a `CDPATH' variable, try each one of that
colon-separated list of directories when resolving a relative directory name."
(interactive
(list (read-file-name "Change default directory: "
- default-directory default-directory)))
+ default-directory default-directory
+ (and (member cd-path '(nil ("./")))
+ (null (getenv "CDPATH"))))))
(if (file-name-absolute-p dir)
(cd-absolute (expand-file-name dir))
(if (null cd-path)